From: Florian Müllner Date: Wed, 15 Nov 2023 12:43:24 +0000 (+0100) Subject: lookingGlass: Don't hide scroll bar manually X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~299 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b84967deb1d58cda6fb81e7608aa7e23465addd;p=gnome-shell.git lookingGlass: Don't hide scroll bar manually The code predates the policy properties, which provide a cleaner way of achieving the desired behavior. Part-of: --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 3b3c74625..8da25d6b4 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -162,8 +162,11 @@ const Notebook = GObject.registerClass({ labelBox.add_child(label); this.tabControls.add_child(labelBox); - const scrollview = new St.ScrollView({y_expand: true, child}); - scrollview.hscroll.hide(); + const scrollview = new St.ScrollView({ + child, + hscrollbar_policy: St.PolicyType.NEVER, + y_expand: true, + }); const tabData = { child, @@ -387,6 +390,7 @@ class ObjInspector extends St.ScrollView { _init(lookingGlass) { super._init({ pivot_point: new Graphene.Point({x: 0.5, y: 0.5}), + hscrollbar_policy: St.PolicyType.NEVER, }); this._obj = null; @@ -394,7 +398,6 @@ class ObjInspector extends St.ScrollView { this._parentList = []; - this.hscroll.hide(); this._container = new St.BoxLayout({ name: 'LookingGlassPropertyInspector', style_class: 'lg-dialog',